home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / Forms / PauseForm.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  736 b   |  31 lines

  1. package Forms
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.MouseEvent;
  5.    
  6.    [Embed(source="/_assets/assets.swf", symbol="Forms.PauseForm")]
  7.    public class PauseForm extends CluelessBaseForm
  8.    {
  9.        
  10.       
  11.       public var _bClose:ButtonRound;
  12.       
  13.       public function PauseForm()
  14.       {
  15.          super();
  16.          Music = "MenuMusic";
  17.          setBackButton(_bClose);
  18.          installMouseOverSound(_bClose);
  19.          addEventListener(Event.ACTIVATE,onFocusIn,false,0,true);
  20.       }
  21.       
  22.       protected function onFocusIn(param1:Event) : void
  23.       {
  24.          if(BaseForm.getCurrentForm() is PauseForm)
  25.          {
  26.             onBack(new MouseEvent(""));
  27.          }
  28.       }
  29.    }
  30. }
  31.